package com.sxbbc.plat.controller.banks;


import com.sxbbc.bank.service.ISysProductService;
import com.sxbbc.common.basics.rest.RestResponse;
import com.sxbbc.common.core.entity.banks.SysProduct;
import com.sxbbc.common.core.entity.banks.SysProductType;
import com.sxbbc.common.core.utils.BasePage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

/**
 * <p>
 * 产品表 前端控制器
 * </p>
 *
 * @author
 * @since 2020-09-04
 */
@Controller
public class SysProductController {

    @Autowired
    private ISysProductService sysProductService;

    @RequestMapping(value = "/sysProduct/list")
    public ModelAndView list() {
        ModelAndView view = new ModelAndView("/banks/sysProduct/index");
        return view;
    }

    @RequestMapping(value ="/sysProduct/listDate")
    @ResponseBody
    public RestResponse selectProductTypeListDate(BasePage<SysProduct> page, SysProduct sysProduct, String yyTime) {
        return sysProductService.selSysProduct(page,sysProduct,yyTime);
    }

}
